abstract class BasicItem implements Item{ //ABSTRACT: UM IMPLEMENTIERUNGEN VON SUBCLASSES ZU ERMOEGLICHEN

	private String publicationDate;
	private String title;
	private String author;
	
	
	
	public BasicItem(String title, String author, String publicationDate){
		this.title=title;
		this.author=author;
		this.publicationDate=publicationDate;
	}
	
	
	public String getPublicationDate(){
		return this.publicationDate;	
	}
	
	
	
	public String getAuthor(){
		return this.author;
	}
	
	
	
	public String getTitle(){
		return this.title;
	}
	
	
	
	public boolean equals(Object obj){
		if(obj!=null && obj instanceof BasicItem){
			BasicItem a = (BasicItem) obj;
			if(a.title.equals(this.title) && a.author.equals(this.author) && 
					a.publicationDate.equals(this.publicationDate) && this.getMaxBorrowTime() == a.getMaxBorrowTime() && 
					a.getFeePerDay()==this.getFeePerDay()){
				return true;
			}
		}
		return false;
	}
	
}
